<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@	page import="java.util.ArrayList"%>
<%@	page import="kau.dao.*"%>
<%@	page import="kau.vo.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>TagList</title>


<style type="text/css">
<!--
@import url("css/style.css");
-->
</style>


<style type="text/css">
#info {
	font-family: 맑은 고딕, dotum, sans-serif, bold;
	font-size: 13px
}
</style>

</head>
<body>
	<form class="form-horizontal" method="post">
		<div id="info">
			<br>
			<table align="left" style="margin-left: 20px">
				<tr>

					<td width="60" height="50"><img
						src="/nems/admin/images/course.png" width="40"
						/></td>

					<td>
						<h4
							style="font-weight: bold; color: #005700; text-align: left; font-size: 20px;">태그
							목록 보기</h4>
					</td>
				</tr>
			</table>

		</div>
		<br> <br>
<center>
		<table id="newspaper-a" style="width: 700px">
			<thead>

				<tr align="center">

					<th scope="col">TAG ID</th>
					<th scope="col">클래스명</th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<%ArrayList<Tag> tagList = (ArrayList)request.getAttribute("tagList"); %>
				
				<%for(int i=0; i<tagList.size();i++) {%>
				<tr align="center">
				<td><%=tagList.get(i).getTagId() %></td>
				<td><%=CourseDAOImpl.getInstance().getCourse(tagList.get(i).getCourseId()).getCourseName() %>
				<td><a href="tagDelete.course?tagId=<%=tagList.get(i).getTagId() %>"
							onclick="return confirm('삭제하시겠습니까?');"
							style="text-decoration: none !important;" class="no-uline"><img
								src="admin/images/delete.png" border="0" /></a></td>
				<%} %>
				
				

			</tbody>
		</table>
</center>

	</form>
	<br>
	<center>
		<a
			href="javascript:location.replace('index.jsp?contentMenu=admin/menuPage.jsp&content=admin/mainPage.jsp')"
			class="css_btn_class">이전화면으로</a>
	</center>


</body>
</html>